package com.vol.controller.sys;

import com.vol.controllerparams.PageParams_Role;
import com.vol.entity.SysRole;
import com.vol.entity.pager.ResultPager;
import com.vol.sys.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("api/Sys_Role")
public class Role2Controller {

    @Autowired
    public RoleService roleService;

    @PostMapping("getPageData")
    public ResultPager<SysRole> getPageData(@RequestBody PageParams_Role roleParams) {
        ResultPager<SysRole> result = roleService.getPageData(roleParams);
        return result;
    }
}



